//从Vue框架导入createApp函数功能
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import router from './router/router.js'
//导入css样式
import './style.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//导入app.vue组件 命名为APP
import App from './App.vue'

//创建应用挂载
let app = createApp(App)
app.use(ElementPlus).use(router)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')